﻿using System.Windows;

namespace RG.Common.WPF.Settings
{
    public class Collector
    {
        public static readonly DependencyProperty SaveProperty =
            DependencyProperty.RegisterAttached(
                "Save",
                typeof(string),
                typeof(Collector));

        public static string GetSave(DependencyObject dependencyObject)
        {
            return dependencyObject.GetValue(SaveProperty) as string;
        }

        public static void SetSave(DependencyObject dependencyObject, string value)
        {
            dependencyObject.SetValue(SaveProperty, value);
        }



        public static readonly DependencyProperty PropertyProperty =
            DependencyProperty.RegisterAttached(
                "Property",
                typeof (DependencyProperty),
                typeof(Collector));

        public static DependencyProperty GetProperty(DependencyObject obj)
        {
            return obj.GetValue(PropertyProperty) as DependencyProperty;
        } 

        public static void SetProperty(DependencyObject obj, DependencyProperty dependencyProperty)
        {
            obj.SetValue(PropertyProperty, dependencyProperty);
        } 
    }
}
